package com.lagou.niancheng.lagouservicecode.common;

import com.lagou.niancheng.lagou.service.common.ErrorCode;

/**
 * com.lagou.niancheng.lagouservicecode.common.CodeErrorCode
 *
 * @author 大犬
 * @date 2020/6/29
 */
public enum CodeErrorCode implements ErrorCode {

    /**
     * 验证码错误码
     */

    SYSTEM_ERROR("CODE-SYS-000", "系统错误，请联系管理员"),


    NO_THIS_CODE("CODE-SYS-001", "没有这个code"),

    CODE_EXPIRE("CODE-SYS-002", "验证码已经失效");

    private String errorCode;
    private String errorMsg;

    CodeErrorCode(String errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    @Override
    public String getErrorCode() {
        return errorCode;
    }

    @Override
    public String getErrorMsg() {
        return errorMsg;
    }
}
